<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图书管理</title>
    <script src="./books.json"></script>
</head>
<style>
    *{
        margin: 0;
        padding: 0;
    }
    .big-box{
        width: 600px;
        margin: 100px auto;
        
    }
    .tab{
        text-align: center;
    }
    .xu0{
        background-color: #cccccc;

    }
    .tian{
        background-color: green;
        border-radius: 5px;
        padding: 0 2px;
        color: white;
        cursor:pointer;
    }
    .xiu{
        background-color:  green;
        border-radius: 5px;
        color: white;
        cursor:pointer
    }
    .del{
        background-color:red;
        border-radius: 5px;
        color: white;
        cursor:pointer
    }
    .tab>tr>th{
        display: inline-block;
        width: 150px;
    }
</style>
<body>
    <div class="big-box">
        <div class="tall">
            <h1>图书管理系统</h1>
        </div>
        <span class="tian">添加图书</span>
        <table border="1px" cellspacing="0" class="tab">
            <tr>
                <th>序号</th>
                <th>名称</th>
                <th>作者</th>
                <th>分类</th>
                <th>描述</th>
                <th>操作</th>
            </tr>
            <tr class="xu0">
                <td>0</td>
                <td>books.bookname</td>
                <td>books.author</td>
                <td>books.cat</td>
                <td>books.des</td>
                <td>
                    <button class="xiu">编辑</button>
                    <button class="del">删除</button>
                </td>
            </tr>
            <tr>
                <td>1</td>
                <td>名称</td>
                <td>作者</td>
                <td>分类</td>
                <td>描述</td>
                <td>
                    <button class="xiu">编辑</button>
                    <button class="del">删除</button>
                </td>
            </tr>
            <tr class="xu0">
                <td>2</td>
                <td>名称</td>
                <td>作者</td>
                <td>分类</td>
                <td>描述</td>
                <td>
                    <button class="xiu">编辑</button>
                    <button class="del">删除</button></td>
            </tr>
            <tr >
                <td>3</td>
                <td>名称</td>
                <td>作者</td>
                <td>分类</td>
                <td>描述</td>
                <td>
                    <button class="xiu">编辑</button>
                    <button class="del">删除</button>
                </td>
            </tr>

        </table>
    </div>
</body>
</html>